package demo7;

/**
 * Created with IntelliJ IDEA.
 * Description:super的使用以及代码块的执行顺序
 * User: 86183
 */
public class Animal {
    public String nane;
    public int age;
    static{
        System.out.println("Animal类---静态代码块");
    }
    {
        System.out.println("Animal类---实例代码块");
    }
    public Animal(String nane, int age) {
        this.nane = nane;
        this.age = age;
        System.out.println("Animal类---构造方法");
    }

}
